import { computed } from "vue";

export interface IMenu {
  name: string;
  isEnable?: boolean;
  isVisiable?: boolean;
  icon?: string;
  subMenu?: IMenu[];
}

export default function useMenuTree() {
  const menuTree = computed<IMenu[]>(() => {
    let mt: IMenu[] = [
      {
        name: "仪表盘",
        subMenu: [
          {
            name: "工作台",
          },
          {
            name: "实时监控",
          },
        ],
      },
      {
        name: "数据可视化",
        subMenu: [
          {
            name: "分析页",
          },
          {
            name: "多维数据分析",
          },
        ],
      },
    ];
    return mt;
  });
  return {
    menuTree,
  };
}
